package storage;
import java.util.EnumSet;

public enum TaskPriority {
	LOW("Don't bother"), MEDIUM("Keep in mind"), HIGH("Urgent");

	private String value_;

	TaskPriority(String value) {
		this.value_ = value;
	}

	public String toString() {
		return value_;
	}

	public static TaskPriority getByValue(String value) {
		TaskPriority returnValue = null;
		for (final TaskPriority element : EnumSet.allOf(TaskPriority.class)) {
			if (element.toString().equals(value)) {
				returnValue = element;
			}
		}
		return returnValue;
	}
}
